home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Hyper / Ap-Az / AstroStack1.1.cpt / AstroStack 1.1 / card_7360.txt < prev    next >
Encoding:
Text File  |  1988-04-24  |  7.4 KB  |  301 lines

  1. -- card: 7360 from stack: in.1
  2. -- bmap block id: 10870
  3. -- flags: 0000
  4. -- background id: 2632
  5. -- name: 
  6. ----- HyperTalk script -----
  7. on openCard
  8.  
  9.   hide card button id 35
  10.   hide card field id 33
  11.   show card button id 34
  12.  
  13. end openCard
  14.  
  15.  
  16. -- part 1 (field)
  17. -- low flags: 01
  18. -- high flags: 0000
  19. -- rect: left=36 top=63 right=81 bottom=194
  20. -- title width / last selected line: 0
  21. -- icon id / first selected line: 0 / 0
  22. -- text alignment: 0
  23. -- font id: 0
  24. -- text size: 12
  25. -- style flags: 0
  26. -- line height: 16
  27. -- part name: 
  28.  
  29.  
  30. -- part 25 (button)
  31. -- low flags: 00
  32. -- high flags: A003
  33. -- rect: left=385 top=298 right=320 bottom=485
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 0 / 0
  36. -- text alignment: 1
  37. -- font id: 0
  38. -- text size: 12
  39. -- style flags: 0
  40. -- line height: 16
  41. -- part name: Continue
  42. ----- HyperTalk script -----
  43.  
  44. on mouseUp
  45.   global sun, moon, mercury, venus, mars, jupiter, saturn, uranus, neptune, pluto, hour, dateB, midA, midB, midheaven
  46.   set the cursor to 4
  47.   repeat with x = 1 to 10
  48.     if item 1 of line x of card field id 47 is not in card field id 48
  49.     then
  50.     beep
  51.     answer "Please check the spelling of line" && x &"."
  52.     exit mouseUp
  53.   end if
  54. end repeat
  55.  
  56. repeat with x = 1 to 10
  57.   if the number of items in line x of card field id 47 <>3
  58.   then
  59.   beep
  60.   answer "Line " & x && "needs 3 items and 2 commas."
  61.   exit mouseUp
  62. end if
  63. end repeat
  64.  
  65. repeat with x = 1 to 12
  66.   if item 1 of line 1 of card field id 47 = item 1 of line x of card field id 48 then
  67.     put (item 2 of line x of card field id 48) + (item 2 of line 1 of card field id 47) + ((item 3 of line 1 of card field id 47)/60) into sun
  68.     exit repeat
  69.   end if
  70. end repeat
  71.  
  72. repeat with x = 1 to 12
  73.   if item 1 of line 2 of card field id 47 = item 1 of line x of card field id 48 then
  74.     put (item 2 of line x of card field id 48) + (item 2 of line 2 of card field id 47) + ((item 3 of line 2 of card field id 47)/60) into moon
  75.     exit repeat
  76.   end if
  77. end repeat
  78. repeat with x = 1 to 12
  79.   if item 1 of line 3 of card field id 47 = item 1 of line x of card field id 48 then
  80.     put (item 2 of line x of card field id 48) + (item 2 of line 3 of card field id 47) + ((item 3 of line 3 of card field id 47)/60) into mercury
  81.     exit repeat
  82.   end if
  83. end repeat
  84. repeat with x = 1 to 12
  85.   if item 1 of line 4 of card field id 47 = item 1 of line x of card field id 48 then
  86.     put (item 2 of line x of card field id 48) + (item 2 of line 4 of card field id 47) + ((item 3 of line 4 of card field id 47)/60) into venus
  87.     exit repeat
  88.   end if
  89. end repeat
  90. repeat with x = 1 to 12
  91.   if item 1 of line 5 of card field id 47 = item 1 of line x of card field id 48 then
  92.     put (item 2 of line x of card field id 48) + (item 2 of line 5 of card field id 47) + ((item 3 of line 5 of card field id 47)/60) into mars
  93.     exit repeat
  94.   end if
  95. end repeat
  96. repeat with x = 1 to 12
  97.   if item 1 of line 6 of card field id 47 = item 1 of line x of card field id 48 then
  98.     put (item 2 of line x of card field id 48) + (item 2 of line 6 of card field id 47) + ((item 3 of line 6 of card field id 47)/60) into jupiter
  99.     exit repeat
  100.   end if
  101. end repeat
  102. repeat with x = 1 to 12
  103.   if item 1 of line 7 of card field id 47 = item 1 of line x of card field id 48 then
  104.     put (item 2 of line x of card field id 48) + (item 2 of line 7 of card field id 47) + ((item 3 of line 7 of card field id 47)/60) into saturn
  105.     exit repeat
  106.   end if
  107. end repeat
  108. repeat with x = 1 to 12
  109.   if item 1 of line 8 of card field id 47 = item 1 of line x of card field id 48 then
  110.     put (item 2 of line x of card field id 48) + (item 2 of line 8 of card field id 47) + ((item 3 of line 8 of card field id 47)/60) into uranus
  111.     exit repeat
  112.   end if
  113. end repeat
  114. repeat with x = 1 to 12
  115.   if item 1 of line 9 of card field id 47 = item 1 of line x of card field id 48 then
  116.     put (item 2 of line x of card field id 48) + (item 2 of line 9 of card field id 47) + ((item 3 of line 9 of card field id 47)/60) into neptune
  117.     exit repeat
  118.   end if
  119. end repeat
  120. repeat with x = 1 to 12
  121.   if item 1 of line 10 of card field id 47 = item 1 of line x of card field id 48 then
  122.     put (item 2 of line x of card field id 48) + (item 2 of line 10 of card field id 47) + ((item 3 of line 10 of card field id 47)/60) into pluto
  123.     exit repeat
  124.   end if
  125. end repeat
  126.  
  127.  
  128. repeat with x = 1 to 12
  129.   if midA =  item 1 of line x of card field id 48 then
  130.     put  (item 2 of line x of card field id 48) + the value of midB into midheaven
  131.     exit repeat
  132.   end if
  133. end repeat
  134.  
  135.  
  136. convert dateB to seconds
  137. if hour < 12 then
  138.   put "previous day:" into card field ID 50 in card id 9215
  139.   put dateB - 86400 into prevday
  140.   convert prevday to abbreviated date
  141.   put prevday & "." into card field id 1 of card id 9215
  142. end if
  143. if hour >= 12 then
  144.   put "following day:" into card field ID 50 in card id 9215
  145.   put dateB + 86400 into nexday
  146.   convert nexday to abbreviated date
  147.   put nexday & "." into card field id 1 of card id 9215
  148. end if
  149. go to next card
  150. end mouseUp
  151.  
  152.  
  153.  
  154. -- part 33 (field)
  155. -- low flags: 81
  156. -- high flags: 2007
  157. -- rect: left=380 top=200 right=282 bottom=485
  158. -- title width / last selected line: 0
  159. -- icon id / first selected line: 0 / 0
  160. -- text alignment: 0
  161. -- font id: 0
  162. -- text size: 12
  163. -- style flags: 0
  164. -- line height: 16
  165. -- part name: 
  166.  
  167.  
  168. -- part 34 (button)
  169. -- low flags: 00
  170. -- high flags: A003
  171. -- rect: left=386 top=171 right=193 bottom=486
  172. -- title width / last selected line: 0
  173. -- icon id / first selected line: 0 / 0
  174. -- text alignment: 1
  175. -- font id: 0
  176. -- text size: 12
  177. -- style flags: 0
  178. -- line height: 16
  179. -- part name: Open Speller
  180. ----- HyperTalk script -----
  181. on mouseUp
  182.   show card field ID 33
  183.   show card button ID 35
  184.   hide card button ID 34
  185. end mouseUp
  186.  
  187.  
  188.  
  189. -- part 35 (button)
  190. -- low flags: 80
  191. -- high flags: A003
  192. -- rect: left=386 top=171 right=193 bottom=486
  193. -- title width / last selected line: 0
  194. -- icon id / first selected line: 0 / 0
  195. -- text alignment: 1
  196. -- font id: 0
  197. -- text size: 12
  198. -- style flags: 0
  199. -- line height: 16
  200. -- part name: Close Speller
  201. ----- HyperTalk script -----
  202. on mouseUp
  203.   hide card field ID 33
  204.   show card button ID 34
  205.   hide card button ID 35
  206. end mouseUp
  207.  
  208.  
  209.  
  210. -- part 48 (field)
  211. -- low flags: 00
  212. -- high flags: 4007
  213. -- rect: left=136 top=187 right=291 bottom=312
  214. -- title width / last selected line: 0
  215. -- icon id / first selected line: 0 / 0
  216. -- text alignment: 0
  217. -- font id: 3
  218. -- text size: 12
  219. -- style flags: 0
  220. -- line height: 16
  221. -- part name: 
  222.  
  223.  
  224. -- part 46 (field)
  225. -- low flags: 01
  226. -- high flags: 0001
  227. -- rect: left=120 top=161 right=320 bottom=182
  228. -- title width / last selected line: 0
  229. -- icon id / first selected line: 0 / 0
  230. -- text alignment: 65535
  231. -- font id: 0
  232. -- text size: 12
  233. -- style flags: 0
  234. -- line height: 16
  235. -- part name: 
  236.  
  237.  
  238. -- part 47 (field)
  239. -- low flags: 00
  240. -- high flags: 4002
  241. -- rect: left=181 top=162 right=321 bottom=330
  242. -- title width / last selected line: 0
  243. -- icon id / first selected line: 0 / 0
  244. -- text alignment: 0
  245. -- font id: 3
  246. -- text size: 12
  247. -- style flags: 0
  248. -- line height: 16
  249. -- part name: 
  250.  
  251.  
  252. -- part contents for card part 33
  253. ----- text -----
  254. Aries                
  255. Taurus            
  256. Gemini
  257. Cancer
  258. Leo
  259. Virgo
  260. Libra
  261. Scorpio
  262. Sagittarius
  263. Capricorn
  264. Aquarius
  265. Pisces
  266.  
  267. -- part contents for card part 46
  268. ----- text -----
  269. Sun
  270. Moon
  271. Mercury
  272. Venus
  273. Mars
  274. Jupiter
  275. Saturn
  276. Uranus
  277. Neptune
  278. Pluto
  279.  
  280.  
  281.  
  282.  
  283.  
  284. -- part contents for card part 48
  285. ----- text -----
  286. Aries,   0           
  287. Taurus, 30       
  288. Gemini,  60
  289. Cancer,  90
  290. Leo, 120
  291. Virgo,  150
  292. Libra, 180
  293. Scorpio,  210
  294. Sagittarius,  240
  295. Capricorn,  270
  296. Aquarius,  300
  297. Pisces,  330
  298.  
  299. -- part contents for card part 1
  300. ----- text -----
  301. .